﻿// Deep Earth is a community project available under the Microsoft Public License (Ms-PL)
// Code is provided as is and with no warranty – Use at your own risk
// View the project and the latest code at http://DeepEarth.codeplex.com/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Media.Animation;

namespace DeepEarth.Client.MapControl
{
    public static class StoryboardEx
    {
        public static IObservable<IEvent<EventArgs>> GetCompleted(this Storyboard storyboard)
        {
            return Observable.FromEvent<EventArgs>(storyboard, "Completed");
        }
    }
}